/*
 * @Author: Y先森
 * @Date: 2023-04-11 16:01:04
 * @LastEditors: y && 250048395@qq.com
 * @LastEditTime: 2023-04-27 09:52:51
 * @FilePath: \y-website\src\store\modules\theme.js
 */
import { THEME_LIGHT } from '@/constants'
export default {
  namespaced: true,
  state: () => ({
    // 主题模式
    themeType: THEME_LIGHT
  }),
  mutations: {
    /**
     *  切换主题模式
     */
    changeThemeType(state, newTheme) {
      state.themeType = newTheme
    }
  }
}
